<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>GREENBOOK</title>
<link href="./css/css.css" rel="stylesheet" type="text/css">
</head>
<script language="javascript">

function openZipcode(){
	var url="zipcodeCheck1.action";
	open(url, "confirm","toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=410, height=400");
}

</script>

<body>
<center>
<br>
<form name="custmodify" method="post">
<table width="753" class="BTABLE">
	<tr>
		<td class="BTD" width="23" align="center" colspan="4">회원관리</td>
	</tr>
	<tr>
		<td width="70" class="BTD2 " align="center">회원번호</td>
		<td bgcolor="#ffffff"><s:property value="resultClass.no" /></td>
	</tr>
	<tr>
		<td class="BTD2 " align="center">아이디</td>
		<td bgcolor="#ffffff"><s:property value="resultClass.id" /></td>
	</tr>
	<tr>
		<td width="70" class="BTD2 " align="center">비밀번호</td>
		<td bgcolor="#ffffff"><input type="text" name="password" size="28" value="${resultClass.password}">
		<font class="BFONT">영문/숫자를 이용하여 4~12자로 입력하세요</font></td>
	</tr>
	<tr>
		<td width="70" class="BTD2 " align="center">이름</td>
		<td bgcolor="#ffffff"><input type="text" name="name" size="28" value="${resultClass.name}"></td>
	</tr>
	<tr>
		<td width="70" class="BTD2 " align="center">이메일</td>
		<td bgcolor="#ffffff"><input type="text" name="email" size="28" value="${resultClass.email}">
		<font class="BFONT">이메일 형식에 맞춰 입력해 주세요</font></td>
	</tr>
	<tr>
		<td width="70" class="BTD2 " align="center">우편번호</td>
		<td bgcolor="#ffffff"><input type="text" name="zipcode"  value="${resultClass.zipcode}" size="28"/> 
				<input type="button" value="검색" onclick="return openZipcode()" class="BBUTTON">
				<font class="BFONT">검색 버튼을 눌러 주소를 입력해 주세요</font></td>
	</tr>
	
	<tr>
		<td width="70" class="BTD2 " align="center">주소</td>
		<td align="left">
			<input type="text" name="address1" value="${resultClass.address1}" size="60"/><br> 
			<input type="text" name="address2" value="${resultClass.address2}" size="60"></td>
	</tr>
	
	<tr>
		<td width="70" class="BTD2 " align="center">전화번호</td>
		<td align="left"><input type="text" name="phone" size="28" value="${resultClass.phone}" >
				<font class="BFONT">"-" 없이 숫자만 입력하세요</font></td>
	</tr>
	
	<tr>
		<td width="70" class="BTD2 " align="center">가입일자</td>
		<td bgcolor="#ffffff"><s:property value="resultClass.regdate" /></td>
	</tr>
	
	
	<tr>
		<td colspan="2" align="center">
			<s:url id="modifyURL" action="Modify">
				<s:param name="memberno">
					<s:property value="memberno" />
				</s:param>
			</s:url>
			<s:url id="deleteURL" action="noticeDelete">
				<s:param name="memberno">
					<s:property value="memberno" />
				</s:param>
			</s:url>
			<br><br>
			
			<input name="list" type="button" value="수정" class="BBUTTON" 
				onClick="javascript:location.href='adminMemberModify.action?memberno=<s:property value="memberno" />'">
			<input name="list" type="button" value="삭제" class="BBUTTON" 
				onClick="javascript:location.href='adminMemberDelete.action?memberno=<s:property value="memberno" />&currentPage=<s:property value="currentPage" />'">
			<input name="list" type="button" value="목록보기" class="BBUTTON" 
				onClick="javascript:location.href='adminMemberList.action?currentPage=<s:property value="currentPage" />'">
			<br><br>
		</td>
	</tr>
</table>
</form>
<br>
</center>
</body>
</html>